﻿@namespace SE.PO.CInterface.Web.Pages.DB.SignalH
@page "/db/signalhs"
@using SE.PO.CInterface.Web.Clients
@using SE.PO.CInterface.DBProtocols.SignalHs
@using AutoMapper
@inject SignalHClient Client
@inject INotificationService Notice
@inject IMapper Mapper
<PageContainer Title="历史数据">
    <Breadcrumb>
        <Breadcrumb>
            <BreadcrumbItem>首页</BreadcrumbItem>
            <BreadcrumbItem>数据库协议</BreadcrumbItem>
            <BreadcrumbItem>历史数据</BreadcrumbItem>
        </Breadcrumb>
    </Breadcrumb>
    <Content>
        <span>下级SC在中间数据库表中存储历史数据。按下级SC的存储原则写入，删除工作由上级SC完成。下级SC根据时间间隔（最小为1小时），向历史告警表，信号量历史数据表，历史事件表存储数据。</span>
    </Content>
    <ChildContent>
        <Card>
            <Row Gutter="24">
                
                <GridCol Span="24">
                   
                    <Table @ref="_table"
                           TItem="SignalHDto"
                           ScrollY="900px"
                           Loading="@_loadingData"
                           DataSource="@_source"
                           Total="_total"
                           @bind-PageIndex="_pageIndex"
                           @bind-PageSize="_pageSize"
                           OnChange="OnChange"
                           Size="TableSize.Small">
                        <ColumnDefinitions>
                            <PropertyColumn Width="300" Title="设备名称" Property="c => c.DeviceEquipment"/>
                            <PropertyColumn Width="300" Title="信号名称" Property="c => c.SignalSignalName"/>
                            <PropertyColumn Width="350" Title="监控数据标识号" Property="c => c.SignalId"/>
                            <PropertyColumn Title="数据时间" Property="c => c.UpdateTime"/>
                            <PropertyColumn Title="值" Property="c => c.Value"/>
                        </ColumnDefinitions>
                    </Table>
                </GridCol>
            </Row>

        </Card>
    </ChildContent>
</PageContainer>
